package fr.umlv.m2.jee.portailEtudiant.service;

import fr.umlv.m2.jee.portailEtudiant.persistence.*;
import org.joda.time.DateTime;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

/**
 * Created by IntelliJ IDEA.
 * User: soufiane
 * Date: 19/03/11
 * Time: 22:08
 * To change this template use File | Settings | File Templates.
 */
public class DisplayCourse implements Serializable {

    private Course course;

    public DisplayCourse(Course course) {
        this.course = course;
    }



    public long getId() {
        return course.getIdCourse();
    }



    public DateTime getDateExamen() {
        return course.getExamenDate();
    }

    public Formation getFormation() {
        return course.getFormation();
    }

    public List< Td > getTd() {
        return course.getTds();
    }

    public List< Tp > getTdp() {
        return course.getTps();
    }

    public String getName() {
        return course.getName();
    }

    public List< Tutorial > getTutorial() {
        return course.getTutorials();
    }

    public void setName(String name) {
        this.course.setName(name);
    }

    public void setTd(List< Td > tds) {
        this.course.setTds(tds);
    }

    public void setTp(List< Tp > tps) {
        this.course.setTps(tps);
    }

    public void setTutorial(List< Tutorial > tutorials) {
        this.course.setTutorials(tutorials);
    }

    public void setDateExamen(DateTime date) {
        this.course.setExamenDate(date);
    }

    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }
}
